﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Module_BBS_Content.ascx.cs" Inherits="Modules_Module_BBS_Content" %>
<asp:Label ID="Counter" runat="server" Text="Label"></asp:Label>
<p>&nbsp;</p>
<asp:GridView ID="GridViewContent" runat="server" AllowPaging="True" 
    AutoGenerateColumns="False"  Width="600px" PageSize="10">
  <Columns>              
     <asp:TemplateField HeaderText = "楼层">
        <ItemTemplate>
        <asp:Label ID="id"  runat="server" 
       Text='<%#Container.DataItemIndex==0?"楼主":Container.DataItemIndex+"楼" %>'/>
        </ItemTemplate>
     </asp:TemplateField>
               
     <asp:TemplateField HeaderText = "发言人">
        <ItemTemplate>
           <asp:Label ID="username"  runat="server" 
            Text='<%# Eval("username") %>'/>
        </ItemTemplate>
     </asp:TemplateField>
                               
     <asp:TemplateField HeaderText = "内容">
          <ItemTemplate>
             <asp:Label ID="content"  runat="server" 
              Text='<%# Eval("content") %>'/>
           </ItemTemplate>
     </asp:TemplateField>
                
     <asp:TemplateField HeaderText = "发帖时间">
         <ItemTemplate>
             <asp:Label ID="time"  runat="server" 
              Text='<%# Eval("time") %>'/>
         </ItemTemplate>
     </asp:TemplateField>   
     
     <asp:TemplateField HeaderText="删除">
                 <HeaderStyle HorizontalAlign="Left" Width="50px" />
                 <ItemStyle HorizontalAlign="Left" Width="50px" />
                <ItemTemplate>
                     <a href="./BBS_Delete.aspx?BID=<%#Eval("id") %>" title="<%#Eval("id") %>" target="_self" >删除</a><br />                                           
                </ItemTemplate>
               </asp:TemplateField>             
  </Columns>
</asp:GridView>
发表回复：<asp:TextBox ID="TextBox_content" runat="server"></asp:TextBox><br />
<asp:Button ID="Button_submit" runat="server" Text="确认回复" onclick="submit_Click" />